#!/bin/sh
echo 'import data from hdfs。。。'
currDate=$(date +%Y%m%d)
echo "日期：'$currDate'"
/opt/lagou/servers/hive-2.3.7/bin/hive -e "USE default;LOAD DATA INPATH '/user_clicks/$currDate/clicklog.dat' OVERWRITE INTO TABLE user_clicks PARTITION (dt='$currDate');"